<template>
	<view>
		<!-- WebView 组件 -->
		<web-view ref="webView" :src="webViewUrl" @message="handleGetMessage"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				webViewUrl: '' // WebView 的初始地址
			}
		},
		onLoad: function(option) {
			this.webViewUrl = decodeURIComponent(option.url)
		},

		methods: {

			handleGetMessage: function(e) {
				console.log(e, '进入handleGetMessage方法')
				console.log('handleGetMessage', e)
				if (e.detail.data[0].result == 'success'&&e.detail.data[0].type == 'signdone') {
					// uni.navigateBack()
				}
			},



		},
	}
</script>